package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.InventorySampleBox
import com.ht.medicaltreatment.viewmodel.BaseViewModel

class InventoryDetailAdapter :BaseQuickAdapter<InventorySampleBox,BaseViewHolder>(R.layout.item_inventory_detail_layout){
    override fun convert(holder: BaseViewHolder, item: InventorySampleBox) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvName,item.rfidSampleBox?.name)
        holder.setText(R.id.tvType,item.rfidSampleBox?.inputUserName)
    }
}
